package com.spark.data.model

import java.io.Serializable

/**
 * 借阅清单
 */
data class BorrowListModel(
        var msg: String = "",
        var code: String = "",
        var data: Data = Data(),
        var resultMaps: List<ResultMap> = listOf()
) : Serializable {

    data class Data(
            var pageCount: Int = 0,
            var count: Int = 0,
            var pageSize: Int = 0,
            var pageNum: Int = 0
    ) : Serializable


    data class ResultMap(
            var keys: String = "",
            var borrowState: String = "",
            var taskStateFlag: String = "",
            var returnTime: Long = 0,
            var returnDay: String = "",
            var number: String = "",
            var name: String = "",
            var keysName: String = "",
            var editionTime: Long = 0,
            var id: Int = 0,
            var stdname: String = "",
            var taskId: Int = 0,
            var fileList: List<File> = listOf()
    ) : Serializable {

        data class File(
                var id: Int = 0,
                var filename: String = "",
                var uri: String = "",
                var fileType: Int = 0,
                var personal: Boolean = false,
                var ownerId: Any = Any(),
                var createdTime: Long = 0,
                var modifiedTime: Long = 0,
                var keywords: Any = Any(),
                var data: Any = Any(),
                var cacheUri: String = ""
        ) : Serializable
    }
}